
<link rel="stylesheet" href="assets/css/speed-page.css" type="text/css" media="screen" title="no title" charset="utf-8">


<?PHP

$c_content->where['category']=$conf->qm[1];
$c_content->where['type']='page';
$c_content->where['index']='true';
$c_content->get_content();
$bottom_content=current($c_content->data);



$latest=$category_posts[0];

?>

<div class='c-box-feature c-box-620' id='speed-feature'>
	<div>

		
			
			<?PHP

			foreach($category_posts as $x)
			{

				if($x['index']=='true')
				{


					?>
				
						
							<img src="<?php echo ap($x['image']);?>" class='headline-image' id="headline-image-<?php echo $x['id'];?>">
				
					<?PHP

				}

			}
			?>
		</div>
		<?PHP
		
		foreach($category_posts as $x)
		{

			if($x['index']=='true')
			{

		
				?>
				<div class='home-headline-text' id='home-headline-<?PHP echo $x["id"];?>'>
					<?PHP
					
					echo $x['secondary'];
					?> <a href='content/<?PHP echo $x["id"];?>'>More</a>
				</div>
				<?PHP

			}

		}
		?>
		
	
	<ul id='home-headline-icons'>
		
			<?PHP

			foreach($category_posts as $x)
			{

				if($x['index']=='true')
				{

					?>
					<li><a  id='headline-image-<?PHP echo $x["id"];?>' class='home-headline-image-button'><img src="<?PHP echo ap($x['thumb']);?>" alt="Rotator Mini"></a></li>	
					<?PHP

				}

			}
			?>
	
	</ul>

</div>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$("#home-headline-<?PHP echo $latest['id'];?>").show();
		$("#headline-image-<?PHP echo $latest['id'];?>").show();
		$(".home-headline-image-button").click(function(){
			var name = $(this).attr("id");
			var number= name.replace('headline-image-','');
				$(".home-headline-text").fadeOut(0);
				$("#home-headline-"+number).fadeIn(200);
				
				$(".headline-image").fadeOut(0);
				$("#headline-image-"+number).fadeIn(200);
					
		});

	});
</script>
<div class='c-box-headline c-box-300 c-box c-box-latest-videos' id='speed-latest'>
	<h3>Latest</h3>
	<?PHP
	$items=0;
	foreach($category_videos as $x)
	{
		
		if($items <= 2 && !empty($x['title']))
		{
			
		
			?>
			
				<li>
						<div class='c-box-latest-item-image' style="background-image:url('<?PHP echo ap($x['thumb']);?>');">
							<a href='popout/<?PHP echo $x["id"];?>' class="popoutplayer">
								<img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
							</a>
						</div>
						
					<a href='popout/<?PHP echo $x["id"];?>' class="popoutplayer c-box-latest-link"><?PHP  echo $x['title']."<br />";?></a>
					<?PHP  echo $x['secondary'];?>
					
				
			
				</li>
			<?PHP
			$items++;
		}
		

	}
	
	?>
	
</div>

<div class='c-box-940 c-box' id='speed-items'>
	<h3>Shows</h3>

		<?PHP
		print_r($bottom_content['content']);
		?>

</div>
 
<div class='c-box-headline c-box-300 c-box' id='speed-news'>
	<h3>News</h3>
	<?PHP
	foreach($category_posts as $x)
	{

		if($x['index']=='false')
		{
			?>
			
				<li><a href='content/<?PHP echo $x["id"];?>'><?PHP  echo $x['title']."<br />";?></a></li>
			<?PHP
				
		
		}

	}
	
	?>
	
</div>

<div class='c-box-headline c-box-300 c-box' id='speed-fb'>
<iframe src="https://www.facebook.com/plugins/live_stream_box.php?app_id=107124422690036&amp;width=300&amp;height=300&amp;xid=<?PHP echo $content['id'];?>&amp;via_url=http%3A%2F%2Fpinoytuner.com&amp;always_post_to_friends=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:300px;" allowTransparency="true"></iframe>
	
</div>